<?php
namespace app\web\validate;

use think\Validate;

/**
 * 行为验证器
 * @package app\menus\validate
 * @author
 */
class HandCardNightPrice extends Validate
{
    //定义验证规则
    protected $rule = [
        'name|商品'  => 'require',
        'hand_card_type|项目'  => 'require',
        'start_time|开始时间'  => 'require',
        'sort|排序号' =>'require',
        'price|价格' =>'require',



    ];
    //定义验证提示
    protected $message = [
        'name.require' => '商品必须填写',
        'hand_card_type.require' => '请选择手牌类型',
        'start_time.require' => '请选择开始时间',
        'sort.require' => '请填写排序号',
        'price.require' => '请填写价格',
    ];
    //定义验证场景
    protected $scene = [
        'add'   =>  ['name','hand_card_type','start_time','sort','price'],
    ];
}
